package com.hksj.em.mapper;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hksj.base.entity.Properties;
import com.hksj.base.vo.DeviceVO;
import com.hksj.common.config.annotation.DS_TAOS;
import com.hksj.em.query.RoomEnvChartQuery;
import com.hksj.em.query.RoomEnvQuery;
import com.hksj.em.query.RoomEnvRecordQuery;
import com.hksj.em.vo.RoomAirConditionSwitchVO;
import com.hksj.em.vo.RoomDevicePropertyVO;
import com.hksj.em.vo.RoomEnvVO;
import com.hksj.em.vo.RoomLightStatusVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoomEnvMapper {
    List<RoomEnvVO> listRoom(@Param("query") RoomEnvQuery query, Page<RoomEnvVO> page);

    List<DeviceVO> listDevice(@Param("query") RoomEnvChartQuery query);

    List<RoomDevicePropertyVO> listRoomDeviceProperty(@Param("query") RoomEnvQuery query);

    @DS_TAOS
    List<Properties> listRecord(@Param("queryList") List<RoomEnvRecordQuery> queryList);

    List<RoomLightStatusVO> listLightDevice(@Param("roomIdList") List<Long> roomIdList);

    List<RoomAirConditionSwitchVO> listAirConditionDevice(@Param("roomIdList") List<Long> roomIdList);
}
